package com.zlcx.tz.live.client;

import com.zlcx.tz.live.common.config.OauthFeignConfig;
import com.zlcx.tz.live.vo.ResultVO;
import feign.Headers;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p></p>
 * <PRE>
 * <BR>    修改记录
 * <BR>-----------------------------------------------
 * <BR>    修改日期         修改人          修改内容
 * </PRE>
 *
 * @author zl
 * @version 1.0
 * @date Created in 2019/4/18 11:07
 * @copyright: Copyright (c) founders
 */
@FeignClient(name = "deskmate-group-api" ,configuration = OauthFeignConfig.class)
public interface GroupClient {

    @Headers("sig: {sig}")
    @GetMapping(value = "/group/simple")
    ResultVO myGroups(@RequestHeader("sig") String sig, @RequestParam("userId") Long userId, @RequestParam("toUserId") Long toUserId);

}
